package com.xtedu.examproject.dao.base;

import com.xtedu.examproject.entity.Classes;
import com.xtedu.examproject.util.PageHelper;

import java.util.List;

public interface ClassesDao extends BaseDao<Classes>{
    public int insert(Classes classes) throws Exception;
    public int update(Classes classes) throws Exception;
    public int delete(Classes classes) throws Exception;
    public int deleteById(int id) throws Exception;
    public Classes findById(int id) throws Exception;
    public List<Classes> findAll() throws Exception;

    /**
     *多条件 查询 班级id 班级名称 专业id 课程id 教师id 教室id
     */
    PageHelper findByConditionByPage(int pageIndex, int pageSize, int classId,String className, int subjectId, int courseId, int teacherId, int roomId) throws Exception;
}
